package com.partner.mapper.sysright;

import java.util.List;

import com.partner.bean.sysright.TSysright;
import com.partner.bean.sysright.TSysrightVo;

public interface TSysrightMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TSysright record);

    int insertSelective(TSysright record);

    TSysright selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TSysright record);

    int updateByPrimaryKey(TSysright record);
    
    List<TSysrightVo> selectByParentId(int parentid);

	List<TSysright> findAllRights();
    
    List<TSysrightVo> selectAll(TSysrightVo right);

	Double selectMaxOrdernum();
	
	Integer selectMaxParentOrderNum();
	
	Double selectMaxOrderNum(Integer id);
	
	TSysright selectByOrdernum(Double num);
	
	List<TSysrightVo> selectRightByRole(int id);
    
}
